home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
masmsubs.arc
/
SUBS.DOC
< prev
Wrap
Text File
|
1987-07-28
|
1KB
|
28 lines
These three files contain some handy subroutines that I wrote a
while back for an abandoned project. I've used them several times
myself; I know they work. As written, they'll work unmodified
with any MASM-compatible assembly programs. Although I haven't
done it myself, they should require minimal conversion to work
with most popular languages (Pascal, C, Basic). In the case of
C, most compiler libraries already come with these functions, but
it is my opinion that having working source code is of inestim-
able value.
getenv.asm
Simple routine to fetch the value of an environment variable.
runprog.asm
Routine that uses the EXEC function to exectute an external prog-
ram.
doscmd.asm
Uses both of the above to load a copy of COMMAND.COM and, option-
ally, execute a DOS command. (getenv is used to get the value of
COMSPEC).
I hope that they can be as useful for others as they have been for
me.
Aaron Brenner
CIS 73577,1500